import request from '@/utils/request'

export function sponsorImport (parameter) {
  return request({
    url: '/boss/org/info/upload',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export function getInvoke (parameter) {
  return request({
    url: '/boss/org/hospital/invoke',
    method: 'post',
    data: parameter
  })
}
export function getAddDept (parameter) {
  return request({
    url: '/boss/org/hospital/addDept',
    method: 'post',
    data: parameter
  })
}
export function getUpdateDept (parameter) {
  return request({
    url: '/boss/org/hospital/updateDept',
    method: 'post',
    data: parameter
  })
}
export function getDeleteDept (parameter) {
  return request({
    url: '/boss/org/hospital/deleteDept',
    method: 'post',
    data: parameter
  })
}
export function getDictionary (parameter) {
  return request({
    url: '/common/dictionary',
    method: 'post',
    data: parameter
  })
}
export function getUpload (parameter) {
  return request({
    url: '/boss/org/hospital/upload',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export function getTreeNode (parameter) {
  return request({
    url: '/boss/org/hospital/listTree',
    method: 'post',
    data: parameter
  })
}
export function getTreeList (parameter) {
  return request({
    url: '/boss/org/hospital/list',
    method: 'post',
    data: parameter
  })
}
export function getInstitutionsList (parameter) {
  return request({
    url: '/boss/org/info/list',
    method: 'post',
    data: parameter
  })
}
export function getInstitutionsDetail (parameter) {
  return request({
    url: '/boss/org/info/detail',
    method: 'post',
    data: parameter
  })
}
export function getInstitutionsAdd (parameter) {
  return request({
    url: '/boss/org/info/add',
    method: 'post',
    data: parameter
  })
}
export function getInstitutionsUpdate (parameter) {
  return request({
    url: '/boss/org/info/update',
    method: 'post',
    data: parameter
  })
}
export function getInstitutionsDelete (parameter) {
  return request({
    url: '/boss/org/info/delete',
    method: 'post',
    data: parameter
  })
}
export function uploadFile (parameter) {
  return request({
    url: '/common/upload',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
